libxl: return any serial tty path in libxl_console_get_tty
authorBob Liu <bob.liu@oracle.com>
Thu, 4 Aug 2016 01:07:56 +0000 (09:07 +0800)
committerWei Liu <wei.liu2@citrix.com>
Fri, 5 Aug 2016 09:37:14 +0000 (10:37 +0100)
commit35dbf099ac18924d40533c9d1b9bfbf1ecb818c9
tree5a34bae8a63a8b48f6b521049f5b00ec3ea4cbb3
parent7b61011e1450d42acaaa987525ba9b29898cbef8
libxl: return any serial tty path in libxl_console_get_tty

When specifying a serial list in domain config, users of
libxl_console_get_tty cannot get the tty path of a second specified pty serial,
since right now it always returns the tty path of serial 0.

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl.c